package com.panfeng.xcloud.common.core.web.vo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * 分页公交响应web vo
 *
 * @author xiaobo
 * @version 1.0
 * @since 2018-12-28
 */
@Setter
@Getter
@ApiModel("分页数据")
public class PageResponseVO<T> {

    @ApiModelProperty(value = "当前页数", required = true)
    private Integer pageNumber = 1;
    @ApiModelProperty(value = "当前页记录数", required = true)
    private Integer pageSize = 0;
    @ApiModelProperty(value = "总记录数", required = true)
    private Integer totalCount = 0;
    @ApiModelProperty(value = "总页数", required = true)
    private Integer totalPage = 0;
    @ApiModelProperty(value = "当前页列表数据", required = true)
    @JSONField(serialize = true)
    private List<T> items = new ArrayList<>();

    @ApiModelProperty(value = "临时对象-当前页列表数据", required = true)
    @JSONField(serialize = false)
    private List<T> list = new ArrayList<>();
}
